{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/head",KUO,THIS) }}
<div class="layui-container ">

  
    {{# 
        let $幻灯片 = THIS.$features.configure['网页幻灯片']?THIS.$features.configure['网页幻灯片']:[];
        
        if($幻灯片 && count($幻灯片) > 0 ){
           
            
    }}
    
    <div class="layui-carousel" id="test1">
        <div carousel-item>
            {{#  for(let mm in $幻灯片){
                let $幻灯片数据 = explode("@",$幻灯片[mm]);
             }}
          <div><a href="{{$幻灯片数据['1']}}" title="{{$幻灯片数据['1']?$幻灯片数据['1']:''}}"><img alt="{{$幻灯片数据['1']?$幻灯片数据['1']:''}}" src="{{pichttp($幻灯片数据['0'])}}" /></a></div>
    
          {{# } }}
        </div>
    </div>
    {{# } }}
    
</div>
<div class="kuolist">
    <div class="layui-container ">

        {{#
            let $DAOHANGTYPE = await THIS.TYPE_select({'off':2,'subclass':THIS.$features.configure['分类id'][0]?THIS.$features.configure['分类id'][0]:0,'displayswitch':1});

            if($DAOHANGTYPE){
                for(let I in $DAOHANGTYPE){
                    let DATA = $DAOHANGTYPE[I];

        }} 
        <div class="kuolistbodynav">
            <i class="layui-icon layui-icon-layouts daicon"></i>
            <span>{{DATA.name}}</span>
            <a class="more" href="{{ KuoLink([ KUO.CLASS,DATA.url])}}">更多 <i class="layui-icon  layui-icon-right"></i></a>

        </div>
        <div class="layui-row layui-col-space15"> 

            {{#
                let $WWH = {'off':2,subclass:DATA.id};
                
                let $游戏数据 = await  THIS.CENTER_select($WWH,"sortsize desc,id desc",6  );
                if( $游戏数据 ){
                    for(let $ii in $游戏数据 ){
                        let $eli = $游戏数据 [$ii ];
                        let $eliurl = KuoLink([ KUO.CLASS, $eli['url'] ]);
                        
                }}
            <div class="layui-col-md2 layui-col-xs6 kuolistbody">
                <div class="tupian">
                    <a href="{{$eliurl}}"><img src="{{CDNHOST}}Tpl/cms/manhua/image/loadimg.png" lay-src="{{pichttp($eli.photo)}}" class="image"></img>
                        {{# if($eli.remarks && $eli.remarks != ""){ }}
                        <span class="jiaobiao2"> {{$eli.remarks}}</span>
                        {{# } }}
                    </a>
                </div>
                <div class="biaoti">
                    <a href="{{$eliurl}}">{{$eli.name}}</a>
                </div>
                <div class="gengxin">
                    更至：<span class="zuixin">{{$eli.char1}}</span>
                </div>
                <div class="renqi">
                    人气：{{$eli.popularity}}
                </div>
            </div>
            {{# } } }}
           
         
          
        </div>

        {{# } } }}

    </div>
</div>
{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/foot",KUO,THIS) }}
<script>
var height = 0;
function flash(){
    var fenshu = 4;
    var width_ = $(window).width();
    if(width_ > 750){
        fenshu = 4;
    }else{
        fenshu = 2.5;
    }
  layui.carousel.render({
    elem: '#test1'
    ,indicator:"none"
    ,width: '100%' 
    ,height: (width_/fenshu)+"px"
    ,arrow: 'always' 
    
  });
}
$(function(){
    if($(".layui-carousel").length >0){
        flash();
        $(window).resize(flash);
    }
  

    layui.flow.lazyimg(); 

});
</script>